import 'package:json_annotation/json_annotation.dart';

part 'brush.g.dart';

@JsonSerializable(includeIfNull: false, explicitToJson: true)
class Brush {
  var id;
  var toolbox;
  var brushLink;
  var seriesIndex;
  var geoIndex;
  var xAxisIndex;
  var yAxisIndex;

  var brushType;
  var brushMode;
  var brushStyle;
  var throttleType;
  var throttleDelay;
  var removeOnclick;
  var inBrush;
  var outBrush;
  var outOfBrush;
  var z;


  Brush(
      {this.id,
      this.toolbox,
      this.brushLink,
      this.seriesIndex,
      this.geoIndex,
      this.xAxisIndex,
      this.yAxisIndex,
      this.brushType,
      this.brushMode,
      this.brushStyle,
      this.throttleType,
      this.throttleDelay,
      this.removeOnclick,
      this.inBrush,
      this.outBrush,
      this.outOfBrush,
      this.z});

  factory Brush.fromJson(Map<String, dynamic> json) => _$BrushFromJson(json);
  Map<String, dynamic> toJson() => _$BrushToJson(this);
}
